﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace IntelligentFiles.HcCommon
{
    #region《全局变量》
    /// <summary>
    /// 存放全局公共常量和静态变量
    /// </summary>
    public class ComParam
    {
        /// <summary>
        /// 服务器接口地址
        /// </summary>
        public static string address = "";
        /// <summary>
        /// rfid模块com口
        /// </summary>
        public static string rfidCom = "";
        /// <summary>
        /// 扫码器端口
        /// </summary>
        public static string codeCom = "";
        /// <summary>
        /// 锁孔板端口
        /// </summary>
        public static string lockCom = "";
    }
    #endregion

    #region《接口URL》
    /// <summary>
    /// 接口URL
    /// </summary>
    public class URL
    {
        /// <summary>
        /// 登录验证接口
        /// </summary>
        public static string loginUrl;
    }
    #endregion

    #region 《json数据格式 用于接口提交》
    public class JsonInfo
    {
        /// <summary>
        /// 登录验证信息
        /// </summary>
        [Serializable]
        [StructLayoutAttribute(LayoutKind.Sequential)]
        public struct loginInfo
        {
            /// <summary>
            /// 用户
            /// </summary>
            public string user;
            /// <summary>
            /// 密码
            /// </summary>
            public string pwd;
        }
    }
    #endregion
}
